package com.sip.stream.utils.zfy.event;


import com.sip.stream.utils.zfy.ZFYFileTransferTaskModel;

public class ZFYFileTransferEvent {
    public static final String AUTO_UPLOAD = "AUTO_UPLOAD";
    public static final String BUSINESS_COMPLETE = "BUSINESS_COMPLETE";
    public static final String DELETE_ALL = "DELETE_ALL";
    public static final String EVENT_TYPE_ERROR = "EVENT_TYPE_ERROR";
    public static final String NEW_DOWNLOAD = "NEW_DOWNLOAD";
    public static final String NEW_UPLOAD = "NEW_UPLOAD";
    public static final String NEW_UPLOAD_DEFAULT_FTP = "NEW_UPLOAD_DEFAULT_FTP";
    public static final String RESUME_ALL = "RESUME_ALL";
    public static final String STOP_ALL = "STOP_ALL";
    public static final String UPLOAD_IN_TIMER = "UPLOAD_IN_TIMER";
    private int messageRes;
    private ZFYFileTransferTaskModel taskModel;
    private String type;


    public ZFYFileTransferEvent(String type) {
        this.type = type;
    }

    public ZFYFileTransferEvent(String type, int messageRes) {
        this.type = type;
        this.messageRes = messageRes;
    }

    public ZFYFileTransferEvent(String type, ZFYFileTransferTaskModel zFYFileTransferTaskModel) {
        this.type = type;
        this.taskModel = zFYFileTransferTaskModel;
    }

    public static ZFYFileTransferEvent ErrorEvent(int i) {
        return new ZFYFileTransferEvent("EVENT_TYPE_ERROR", i);
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getMessageRes() {
        return this.messageRes;
    }

    public void setMessageRes(int messageRes) {
        this.messageRes = messageRes;
    }

    public ZFYFileTransferTaskModel getTaskModel() {
        return this.taskModel;
    }

    public void setTaskModel(ZFYFileTransferTaskModel zFYFileTransferTaskModel) {
        this.taskModel = zFYFileTransferTaskModel;
    }
}
